﻿ <style>
     element.style{
             height: 500px;
     }
 </style>
 <link rel="stylesheet" href="css/login.css">

 <div class="lg_contian" style="">
        <div class="lg_contian_body">

            <form name="loginBody" novalidate>
                <ul>
                    <li style="text-align:left;">账号登录</li>
                    <li style="width:1px;text-align:center;margin-right:10px">&nbsp;</li>
                    <li style="text-align:right;" class="lg_li_action">扫码登录</li>
                </ul>
                <div class="lg_form_body  lg_tabin">
                    <!--<label>用户名：</label>-->
                    <input  placeholder="请输入用户Id" type="number" ng-minlength="3" ng-model="user.id" required name="userId" /><br />
                    <span style="color: red;display: block;position: absolute;width: 300px;" ng-show="loginBody.userId.$dirty && loginBody.userId.$invalid">请输入正确的用户id</span>
                    <!--<span style="color:red" ng-show="loginBody.userId.$dirty&&loginBody.userId.$error.required">请输入用户id</span>-->
                    <input type="password" placeholder="请输入密码" ng-model="user.pwd" name="userPwd" ng-minlength="1" required/>
                     <span style="color: red;display: block;position: absolute;width: 300px;"  ng-show="loginBody.userPwd.$dirty&& loginBody.userPwd.$error.required">请输入密码</span>
                     <span style="color: red;display: block;position: absolute;width: 300px;" ng-show="errorLogin">用户名或者密码错误</span>
                    <button style="position: relative;top: 30px;margin-top:5px;" ng-click="loginUser(user)" class="lg_submit" ng-disabled="loginBody.userId.$pristine&&loginBody.userId.$invalid||loginBody.userPwd.$pristine ">登 录</button>
                </div>
                <div class="lg_form_body ">
                    <a href="#" class="lg_saomiao">
                        <img style="background-color:red;width:140px;height:140px;" />
                    </a>
                </div>
            </form>
        </div>
 </div>